package com.ywl.designpattern.facade;

public class ComputerFacade {

    private CPU cpu;
    private Memory memory;
    private HardDrive disk;

    public ComputerFacade() {
        cpu = new CPU();
        memory = new Memory();
        disk = new HardDrive();
    }

    public void start() {
        System.out.println("电脑开始启动");
        disk.readData();
        memory.load();
        cpu.processData();
        System.out.println("电脑启动完成");
    }

}
